<template>
	<view class="content">
		<view class="header">
			<view class="header_bg">
				<view class="tab">
					<view class="tab1" v-for="(item,index) in Tab" @click="tabchange(item.id)"
						:style="{background:a==item.id?'#146DF4':'',color:a==item.id?'#ffffff':''}">
						<text>{{item.title}}</text>
					</view>
				</view>

				<view class="list" v-for="(item,index) in List">
					<view class="list1">
						<text>{{item.title}}</text>
					</view>
					<view class="list2" v-if="item.status==0">
						<text>待审核</text>
					</view>
					<view class="list3" v-if="item.status==1">
						<text>已审核</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				a: 0,
				Tab: [{
						id: 0,
						title: '全部'
					},
					{
						id: 1,
						title: '待审核'
					},
					{
						id: 2,
						title: '已审核'
					}
				],
				List: [{
						id: 0,
						title: 'A校园名称',
						status: 1
					},
					{
						id: 0,
						title: 'A校园名称',
						status: 0
					}
				]
			}
		},
		methods: {
			tabchange(id) {
				this.a = id
			}
		}
	}
</script>

<style>
	.content {
		width: 750rpx;
		height: 1624rpx;
		background: #FAFAFA;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.header {
		width: 750rpx;
		height: 216rpx;
		background: linear-gradient(180deg, #E5F2FF 0%, #FFFFFF 100%);
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.header_bg {
		padding-top: 32rpx;
	}

	.tab {
		width: 690rpx;
		height: 92rpx;
		background: #FFFFFF;
		border-radius: 8rpx 8rpx 8rpx 8rpx;
		margin: auto;
		display: flex;

	}

	.tab1 {
		width: 216rpx;
		height: 64rpx;

		border-radius: 4rpx 4rpx 4rpx 4rpx;
		margin: auto;
		display: flex;
		align-items: center;
		justify-content: center;
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #333333;

	}

	.list {
		width: 690rpx;
		height: 116rpx;
		background: #FFFFFF;
		border-radius: 4rpx 4rpx 4rpx 4rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 32rpx auto 0;
	}

	.list1 {
		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 32rpx;
		color: #333333;
		margin-left: 40rpx;
	}

	.list2 {
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #FF7067;
		margin-right: 32rpx;
	}

	.list3 {
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #409CFD;
		margin-right: 32rpx;
	}
</style>